/*
 * @Author: YuA
 * @Date: 2021-08-04 02:02:58
 * @LastEditTime: 2021-09-03 01:08:07
 * @FilePath: \index\src\network\home.js
 */
import { request } from "./request";

// 轮播图
export function getHomeMultidata() {
  return request({
    url: "/banner"
  });
}
export function getHomepage() {
  return request({
    url: "/homepage/dragon/ball"
  });
}
export function getHomeRecommend() {
  return request({
    url: "/personalized?limit=5"
  });
}
export function getHomeRecommendSong(cookie) {
  return request({
    url: "/playlist/detail?id=2492653494&cookie=" + cookie
  });
}
export function getHomePodcastSong() {
  return request({
    url: "/top/playlist?limit=" + 10
  });
}
export function getHomeMusicAudioSong(cookie) {
  return request({
    url: "/video/timeline/recommend?&cookie=" + cookie
  });
}

// 获取用户名
export function getUserName(userID) {
  return request({
    url: "/user/detail?uid=" + userID
  });
}
export function getRadarSongList(cookie) {
  return request({
    url: "/related/playlist?cookie=" + cookie + "&" + "id=" + 3136952023
  });
}
export function getLookLiveSongList() {
  return request({
    url: "/dj/toplist/popular?limit=6"
  });
}
export function getExclusiveScene() {
  return request({
    url: "/top/playlist/highquality?limit=6"
  });
}

// export function getHomeGoods(type, page) {
//   return request({
//     url: "/homepage/dragon/ball",
//     params: {
//       type,
//       page
//     }
//   });
// }
